/*
 * @Author: Y先森
 * @Date: 2023-04-11 16:25:24
 * @LastEditors: y && 250048395@qq.com
 * @LastEditTime: 2023-05-02 18:09:14
 * @FilePath: \y-website\src\Project\y-blog\router\index.js
 */
import { createRouter, createWebHashHistory } from 'vue-router'
import { isMobileTerminal } from '@/utils/flexible'
import mobileTerminalRoutes from './modules/mobile-routes'
import pcTerminalRoutes from './modules/pc-routes'

// 创建 vueRouter 实例
const router = createRouter({
  history: createWebHashHistory(),
  routes: isMobileTerminal.value ? mobileTerminalRoutes : pcTerminalRoutes
})

export default router
